package views
{
	import assists.resource.ResourceLoaderData;
	
	import inerface.ILoadingWait;
	
	import main.ViewSubBase;
	
	import panel.loadWaiting.LoadingWait;
	
	public class LoadingWaitView extends ViewSubBase
	{
		private var _panel:ILoadingWait;
		public function LoadingWaitView()
		{
			super();
		}
		
		override public function show():void
		{
			render();
		}
		
		public function showProccess(currentBtye:int,totalByte:int):void
		{
			_panel.showProcess(currentBtye,totalByte);
		}
		
		override protected function render():void
		{
			_panel = new LoadingWait();
			_panel.init(layout.stage,resourceLoader,lang);
			this.addView(_panel);
		}
		
		override public function close():void
		{
			this.closeView(this);
		}
		
	}
}